package com.vma.interfaceShoes.controller;

import com.jfinal.core.Controller;
import com.vma.interfaceShoes.util.ReturnsUtil;
import com.vma.shoes.bizModel.model.AboutUs;

/**
 * Created by chenzui on 2017/5/13.
 */
public class AboutUsController extends Controller{
    public void get(){
        try {
            String content = getPara("content");
            AboutUs us = AboutUs.dao.findFirst("SELECT conent,create_time FROM about_us WHERE status = 1 ORDER BY create_time DESC");
            renderJson(ReturnsUtil.returnSuccess(us));
        }catch (Exception e){
            e.printStackTrace();
            renderJson(ReturnsUtil.returnException(e.getMessage(),e));
        }
    }
}
